package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_activity")
public class Activity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 组织者id
     */
    private Long organizerId;



    private String images;
    /**
     * 活动标题
     */
    private String title;

    /**
     * 副标题
     */
    private String subTitle;

    /**
     * 活动介绍
     */
    private String description;

    /**
     * 活动类型
     */
    private Integer type;

    /**
     * 活动状态  1未开始报名 2报名中 3已结束报名
     */
    private Integer status;



    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private Integer stock;

    @TableField(exist = false)
    private LocalDateTime activityStartTime;

    @TableField(exist = false)
    private LocalDateTime activityEndTime;

    @TableField(exist = false)
    private LocalDateTime startTime;

    @TableField(exist = false)
    private LocalDateTime endTime;



}
